/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sunspotworld;

/**
 *
 * @author me
 */
public class SynchedConsumer extends MyThread {
    private Buffer queue;
    
    protected SynchedConsumer(Buffer q) {
        queue = q;
    }
    
    public void doStuff() {
        synchronized(queue) {
            queue.dequeue();
        }
    }
}
